package com.all.play.mypsm.user.fragment;

import android.graphics.Color;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;

import com.all.play.mypsm.base.BaseFragment;

/**
 * Created by 聪明一只哈 on 2018/3/31.
 */

public class UserFragemnt extends BaseFragment {

    private TextView textView;

    @Override
    public View initView() {
        textView = new TextView(mContext);

        textView.setTextSize(22);
        textView.setTextColor(Color.RED);
        textView.setGravity(Gravity.CENTER);
        return textView;
    }

    @Override
    public void initData() {
        super.initData();
        Log.e("TAG", "user数据被初始化了");

        textView.setText("user");
    }
}
